
use "~/Documents/Term Limits/Replication File/TermLimits-Models.dta", replace

set more off

xtset fips year

*Diff-in-Diff No Covariates
xi: reg exp_real_pc tl_onset i.fips i.year, cluster(fips)
*Lagged Model
reg exp_real_pc tl_onset l.exp_real_pc l2.exp_real_pc , cluster(fips)

*Diff-in-Diff
xi:reg exp_real_pc tl_onset population popgrowth populationdensity grants_real_pc gsp_real_inc fedempciv_pc fedempmil_pc govtempsandl_pc ///
seats_house seats_senate unemployment gopshare demcontrol dividedgov squire_score initiatives tel debtlimit i.year i.fips,cluster(fips)

*Lags
xi:reg exp_real_pc tl_onset l.exp_real_pc l2.exp_real_pc population popgrowth populationdensity grants_real_pc gsp_real_inc fedempciv_pc fedempmil_pc govtempsandl_pc ///
seats_house seats_senate unemployment gopshare demcontrol dividedgov squire_score initiatives tel debtlimit, cluster(fips)

